package lt.marsrutai.mobile.android.manager;

import android.content.Context;

/**
 * <p>Interface for default preference value resolution.</p>
 * <p>All preferences having default values should have this interface implemented and registered 
 * using {@link PreferenceDefaultValueResolvers#addDefaultValueResolver(String, DefaultValueResolver)}</p>
 * 
 * @author Justas
 *
 */
public interface DefaultValueResolver {

    /**
     * Resolves default value
     * 
     * @param context Context
     * @return
     */
    <T> T resolveValue(Context context);
}
